<%-- 
    Document   : face
    Created on : 2015-4-30, 17:28:15
    Author     : xulin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<script type="text/javascript">
 var smilies_array = [];
             smilies_array[0] = [];
             smilies_array[0][1] =[['em2001','[抠鼻]','em1017.gif','32','32','50'],
    ['em2002','[鼓掌]','em1017.gif','32','32','50'],
    ['em2003','[可爱]','em1017.gif','32','32','50'],
    ['em2004','[偷笑]','em1017.gif','32','32','50'],
    ['em2005','[晕]','em1017.gif','32','32','50'],
    ['em2006','[调皮]','em1017.gif','32','32','50'],
    ['em2007','[微笑]','em1017.gif','32','32','50'],
    ['em2008','[流泪]','em1017.gif','32','32','50'],
    ['em2009','[大哭]','em1017.gif','32','32','50'],
    ['em2010','[憨笑]','em1017.gif','32','32','50'],
    ['em2011','[闭嘴]','em1017.gif','32','32','50'],
    ['em2012','[鄙视]','em1017.gif','32','32','50'],
    ['em2013','[可怜]','em1017.gif','32','32','50'],
    ['em2014','[无语]','em1017.gif','32','32','50'],
    ['em2015','[发呆]','em1017.gif','32','32','50'],
    ['em2016','[吐]','em1017.gif','32','32','50'],
    ['em2017','[流汗]','em1017.gif','32','32','50'],
    ['em2018','[翻白眼]','em1017.gif','32','32','50'],
    ['em2019','[发怒]','em1017.gif','32','32','50'],
    ['em2020','[尴尬]','em1017.gif','32','32','50'],
    ['em2021','[亲亲]','em1017.gif','32','32','50'],
    ['em2022','[擦汗]','em1017.gif','32','32','50'],
    ['em2023','[快哭了]','em1017.gif','32','32','50'],
    ['em2024','[色色]','em1017.gif','32','32','50'],
    ['em2025','[阴险]','em1017.gif','32','32','50'],
    ['em2026','[得意]','em1017.gif','32','32','50'],
    ['em2027','[睡觉]','em1017.gif','32','32','50'],
    ['em2028','[叹气]','em1017.gif','32','32','50'],
    ['em2029','[嘘]','em1017.gif','32','32','50'],
    ['em2030','[撇嘴]','em1017.gif','32','32','50'],
    ['em2031','[傲慢]','em1017.gif','32','32','50'],
    ['em2032','[饿]','em1017.gif','32','32','50'],
    ['em2033','[困]','em1017.gif','32','32','50'],
    ['em2034','[委屈]','em1017.gif','32','32','50'],
    ['em2035','[骷髅]','em1017.gif','32','32','50'],
    ['em2036','[敲头]','em1017.gif','32','32','50'],
    ['em2037','[惊讶]','em1017.gif','32','32','50'],
    ['em2038','[咒骂]','em1017.gif','32','32','50'],
    ['em2039','[抓狂]','em1017.gif','32','32','50'],
    ['em2040','[奋斗]','em1017.gif','32','32','50'],
    ['em2041','[哼哼]','em1017.gif','32','32','50'],
    ['em2042','[惊恐]','em1017.gif','32','32','50'],
    ['em2043','[衰]','em1017.gif','32','32','50'],
    ['em2044','[疑问]','em1017.gif','32','32','50'],
    ['em2045','[拜拜]','em1017.gif','32','32','50'],
    ['em2046','[强]','em1017.gif','32','32','50'],
    ['em2047','[弱爆]','em1017.gif','32','32','50'],
    ['em2048','[OK]','em1017.gif','32','32','50'],
    ['em2049','[握手]','em1017.gif','32','32','50'],
    ['em2050','[胜利]','em1017.gif','32','32','50'],
    ['em2051','[大便]','em1017.gif','32','32','50'],
    ['em2052','[心碎]','em1017.gif','32','32','50'],
    ['em2053','[玫瑰]','em1017.gif','32','32','50'],
    ['em2054','[小刀]','em1017.gif','32','32','50'],
    ['em1001','[顶]','em1017.gif','32','32','50'],
    ['em1002','[微笑]','em1017.gif','32','32','50'],
    ['em1003','[晕]','em1017.gif','32','32','50'],
    ['em1004','[汗]','em1017.gif','32','32','50'],
    ['em1005','[抱抱]','em1017.gif','32','32','50'],
    ['em1006','[狂笑]','em1017.gif','32','32','50'],
    ['em1007','[害羞]','em1017.gif','32','32','50'],
    ['em1008','[大哭]','em1017.gif','32','32','50'],
    ['em1009','[吐]','em1017.gif','32','32','50'],
    ['em1010','[问]','em1017.gif','32','32','50'],
    ['em1011','[闭嘴]','em1017.gif','32','32','50'],
    ['em1012','[鄙视]','em1017.gif','32','32','50'],
    ['em1013','[胜利]','em1017.gif','32','32','50'],
    ['em1014','[无语]','em1017.gif','32','32','50'],
    ['em1015','[美女]','em1017.gif','32','32','50'],
    ['em1016','[鬼脸]','em1017.gif','32','32','50'],
    ['em1017','[白眼]','em1017.gif','32','32','50'],
    ['em1018','[吻]','em1017.gif','32','32','50'],
    ['em1019','[凶]','em1017.gif','32','32','50'],
    ['em1020','[路过]','em1017.gif','32','32','50'],
    ['em1021','[口水]','em1017.gif','32','32','50'],
    ['em1022','[电话]','em1017.gif','32','32','50'],
    ['em1023','[委屈]','em1017.gif','32','32','50'],
    ['em1024','[握手]','em1017.gif','32','32','50'],
    ['em1025','[已阅]','em1017.gif','32','32','50'],
    ['em1026','[再见]','em1017.gif','32','32','50'],
    ['em1027','[抓狂]','em1017.gif','32','32','50'],
    ['em1028','[鼓掌]','em1017.gif','32','32','50'],
    ['em1029','[无聊]','em1017.gif','32','32','50'],
    ['em1030','[害怕]','em1017.gif','32','32','50'],
    ['em1031','[嘘]','em1017.gif','32','32','50'],
    ['em1032','[下台]','em1017.gif','32','32','50'],
    ['em1033','[偷看]','em1017.gif','32','32','50'],
    ['em1034','[加油]','em1017.gif','32','32','50'],
    ['em1035','[可怜]','em1017.gif','32','32','50'],
    ['em1036','[受伤]','em1017.gif','32','32','50'],
    ['em1037','[吃惊]','em1017.gif','32','32','50'],
    ['em1038','[帅气]','em1017.gif','32','32','50'],
    ['em1039','[睡觉]','em1017.gif','32','32','50'],
    ['em1040','[发火]','em1017.gif','32','32','50'],
    ['em1041','[酷]','em1017.gif','32','32','50'],
    ['em1042','[思考]','em1017.gif','32','32','50'],
    ['em1043','[得意]','em1017.gif','32','32','50'],
    ['em1044','[聪明]','em1017.gif','32','32','50'],
    ['em1045','[贪钱]','em1017.gif','32','32','50'],
    ['em1046','[痛苦]','em1017.gif','32','32','50'],
    ['em1047','[敬礼]','em1017.gif','32','32','50'],
    ['em1048','[牛气冲天]','em1017.gif','32','32','50'],
    ['em1049','[抠鼻子]','em1017.gif','32','32','50'],
    ['em1050','[膜拜]','em1017.gif','32','32','50'],
    ['em1051','[潜水]','em1017.gif','32','32','50'],
    ['em1052','[挨打]','em1017.gif','32','32','50'],
    ['em1053','[骷髅]','em1017.gif','32','32','50'],
    ['em1054','[抱拳]','em1017.gif','32','32','50']];
            function  transformToBBSFace(str){
                var oldStr = str;
                for(var i=0,len=smilies_array[0][1].length; i<len; i++) {
                    var p = new RegExp(smilies_array[0][1][i][1].replace('[', '\\[').replace(']', '\\]'), 'gm');
                    str = str.replace(p, '['+smilies_array[0][1][i][0]+']');
                }
                return str;
            }
</script>